package com.gxa.saas.service.impl;

import com.gxa.saas.mapper.ClientGetPriceMapper;
import com.gxa.saas.pojo.ClientGetPrice;
import com.gxa.saas.service.ClientGetPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: yx
 * @Date: 2022/6/10 10:47
 */
@Service("clientGetPriceService")
public class ClientGetPriceServiceImpl implements ClientGetPriceService {

    @Autowired
    ClientGetPriceMapper clientGetPriceMapper;

    @Override
    public List<ClientGetPrice> selectAll() {
        return clientGetPriceMapper.selectAll();
    }

    @Override
    public Integer selectAllNumber() {
        return clientGetPriceMapper.selectAllNumber();
    }
    @Override
    public List<ClientGetPrice> selecrByPage(Integer offset,Integer size) {
        return clientGetPriceMapper.selecrByPage((offset-1)*size,size);
    }

    @Override
    public void insert(ClientGetPrice clientGetPrice) {
        clientGetPriceMapper.insert(clientGetPrice);
    }

    @Override
    public void update(ClientGetPrice clientGetPrice) {
        clientGetPriceMapper.update(clientGetPrice);
    }
}
